package com.lzs.Controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping(value="/logout")
public class LogoutController {
@RequestMapping(value="/logout_action")
 public String logout(HttpSession session) {
	session.invalidate();
	return "redirect:move_action";
}
@RequestMapping(value="/move_action",method= RequestMethod.GET)
public String tologin() {
	return "login";
}
}